<?php
class Model_Account
{
	private $_id="";
	private $_firstName="";
	private $_lastName="";
	private $_username="";
	private $_email="";
	private $_password="";
	private $_gender="";
	private $_dateOfBirth="";
	private $_phone="";
	private $_image="";
	private $_accountType="";
	
	
	public static function currentUser(){
		$auth = Zend_Auth::getInstance ();
		if ($auth->hasIdentity ()) {
			return $auth->getIdentity ();
		}
		else return "guest";
			
	}
	
	public function getId(){
		return $this->_id;
	}
	public function getFirstName(){
		return $this->_firstName;
	}
	public function getLastName(){
		return $this->_lastName;
	}
	public function getFullName(){
		return $this->_firstName.' '.$this->_lastName;
	}
	public function getUsername(){
		return $this->_username;
	}
	public function getEmail(){
		return $this->_email;
	}
	public function getPassword(){
		return $this->_password;
	}
	public function getGender(){
		return $this->_gender;
	}
	public function getDateOfBirth(){
		return $this->_dateOfBirth;
	}
	public function getPhone(){
		return $this->_phone;
	}
	public function getImage(){
		return $this->_image;
	}
	public function setId($value){
		$this->_id=$value;
		return $this;
	}
	public function setFirstName($value){
		$this->_firstName=$value;
		return $this;
	}
	public function setLastName($value){
		$this->_lastName=$value;
		return $this;
	}
	public function setUsername($value){
		$this->_username=$value;
		return $this;
	}
	public function setEmail($value){
		$this->_email=$value;
		return $this;
	}
	public function setPassword($value){
		$this->_password=$value;
		return $this;
	}
	public function setGender($value){
		$this->_gender=$value;
		return $this;
	}
	public function setDateOfBirth($value){
		$this->_dateOfBirth=$value;
		return $this;
	}
	public function setPhone($value){
		$this->_phone=$value;
		return $this;
	}	
	public function setImage($value){
		$this->_image=$value;
		return $this;
	}
	
	public function getAccountType(){
		return $this->_accountType;
	} 
	
	public function setAccountType($value){
		$this->_accountType=$value;
		return $this;
	}
}